package com.example.attendance_back.controller;


import com.example.attendance_back.model.ResponseMessage;
import com.example.attendance_back.service.SignInService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/signin")
@CrossOrigin
public class SignInController {


    @Autowired
    private SignInService service;

    @RequestMapping("/list")
    public ResponseMessage getList(){

        return  service.getAll();
    }
}
